<div id="column-left">{include file="blocks/menu_info_login.tpl"}</div>
<div id="content">
<h1 style="margin-top:55px;"><span class="h1-top">Lịch sử đơn hàng</span></h1>

    
    <div class="checkout-content" id="checkout4" style="display: block; ">
      <div class="checkout-product">
        <table>
          <thead>
            <tr >
                <td class="image" >Mã đơn hàng</td>
                <td class="name">Trạng thái</td>
                <td class="model">Ngày mua hàng</td>
                <td class="quantity">Số lượng</td>
                <td class="price">Tên khách hàng</td>
                <td class="total" >Tổng</td>
                <td class="total">Chi tiết</td>
            </tr>
          </thead>
          <tbody>
          
         {foreach $check_history_order as $detail}
          <tr style="line-height:40px;">
            <td class="image">{$detail.id}</td>
            <td class="name">{if $detail.checkout==1}đã mua{else}chưa mua{/if}<a href=""></a></td>
            <td class="model">{$detail.date_added}</td>
            
            <td class="quantity">{$detail.count}</td>
           
            <td class="price">{$detail.user_name}</td>
            <td class="total">{number_format($detail.sum_money)}VNĐ</td>
            <td class="total"><a href="/chi-tiet-don-hang/{$detail.id}/"><input type="image" src="/templates/images/icon_1.png" alt="Update" title="Update" name="submit" /></a></td>
          </tr>
          {/foreach}
            </tbody>
        </table>
      </div>
    </div>

